package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserOrderPropertyMapper;
import com.ruoyi.system.domain.SysUserOrderProperty;
import com.ruoyi.system.service.ISysUserOrderPropertyService;

/**
 * 用户订单房源id关联表Service业务层处理
 * 
 * @author ssd
 * @date 2024-04-25
 */
@Service
public class SysUserOrderPropertyServiceImpl implements ISysUserOrderPropertyService 
{
    @Autowired
    private SysUserOrderPropertyMapper sysUserOrderPropertyMapper;

    /**
     * 查询用户订单房源id关联表
     * 
     * @param orderId 用户订单房源id关联表主键
     * @return 用户订单房源id关联表
     */
    @Override
    public SysUserOrderProperty selectSysUserOrderPropertyByUserId(Long orderId)
    {
        return sysUserOrderPropertyMapper.selectSysUserOrderPropertyByOrderId(orderId);
    }

    /**
     * 查询用户订单房源id关联表列表
     * 
     * @param sysUserOrderProperty 用户订单房源id关联表
     * @return 用户订单房源id关联表
     */
    @Override
    public List<SysUserOrderProperty> selectSysUserOrderPropertyList(SysUserOrderProperty sysUserOrderProperty)
    {
        return sysUserOrderPropertyMapper.selectSysUserOrderPropertyList(sysUserOrderProperty);
    }

    /**
     * 新增用户订单房源id关联表
     * 
     * @param sysUserOrderProperty 用户订单房源id关联表
     * @return 结果
     */
    @Override
    public int insertSysUserOrderProperty(SysUserOrderProperty sysUserOrderProperty)
    {
        return sysUserOrderPropertyMapper.insertSysUserOrderProperty(sysUserOrderProperty);
    }

    /**
     * 修改用户订单房源id关联表
     * 
     * @param sysUserOrderProperty 用户订单房源id关联表
     * @return 结果
     */
    @Override
    public int updateSysUserOrderProperty(SysUserOrderProperty sysUserOrderProperty)
    {
        return sysUserOrderPropertyMapper.updateSysUserOrderProperty(sysUserOrderProperty);
    }

    /**
     * 批量删除用户订单房源id关联表
     * 
     * @param orderIds 需要删除的用户订单房源id关联表主键
     * @return 结果
     */
    @Override
    public int deleteSysUserOrderPropertyByUserIds(Long[] orderIds)
    {
        return sysUserOrderPropertyMapper.deleteSysUserOrderPropertyByOrderIds(orderIds);
    }

    /**
     * 删除用户订单房源id关联表信息
     * 
     * @param orderId 用户订单房源id关联表主键
     * @return 结果
     */
    @Override
    public int deleteSysUserOrderPropertyByUserId(Long orderId)
    {
        return sysUserOrderPropertyMapper.deleteSysUserOrderPropertyByOrderId(orderId);
    }
}
